package com.base.service.impl;

import com.base.mapper.voipmapper.ExchangeMobileRecordMapper;
import com.base.po.voip.ExchangeMobileRecord;
import com.base.po.voip.ExchangeMobileRecordExample;
import com.base.service.ExchangeMobileRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("exchangeMobileRecordService")
public class ExchangeMobileRecordServiceImpl implements ExchangeMobileRecordService {
    @Autowired
    ExchangeMobileRecordMapper exchangeMobileRecordMapper;
    @Override
    public int countByExample(ExchangeMobileRecordExample example) {
        return exchangeMobileRecordMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ExchangeMobileRecordExample example) {
        return exchangeMobileRecordMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return exchangeMobileRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ExchangeMobileRecord record) {
        return exchangeMobileRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(ExchangeMobileRecord record) {
        return exchangeMobileRecordMapper.insertSelective(record);
    }

    @Override
    public List<ExchangeMobileRecord> selectByExample(ExchangeMobileRecordExample example) {
        return exchangeMobileRecordMapper.selectByExample(example);
    }

    @Override
    public ExchangeMobileRecord selectByPrimaryKey(String id) {
        return exchangeMobileRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(ExchangeMobileRecord record, ExchangeMobileRecordExample example) {
        return exchangeMobileRecordMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ExchangeMobileRecord record, ExchangeMobileRecordExample example) {
        return exchangeMobileRecordMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(ExchangeMobileRecord record) {
        return exchangeMobileRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ExchangeMobileRecord record) {
        return exchangeMobileRecordMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ExchangeMobileRecord> searchforTransfer(String mobileA, String mobileB, Integer status, String parentId, Integer pageSize, Integer pageNo) {
        return exchangeMobileRecordMapper.searchforTransfer(mobileA, mobileB, status,parentId, pageSize, pageNo);
    }
}
